<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">   
    <h:form styleClass="formMenu" style="margin-bottom:10px;">
        <p:menu> 
            <p:submenu label="Administration">
                <p:menuitem style="background: red; color:white; float: right;" value="Déconnexion" ajax="false" action="/" actionListener="#{loginBean.deconnexion()}" icon="ui-icon-extlink" />  
                <p:menuitem url="/admin/profil.jsf" value="Compte" icon="ui-icon-extlink" />
                <p:menuitem url="/admin/server.jsf" value="Configuration" icon="ui-icon-extlink" />
            </p:submenu>
            <p:submenu label="Utilisateurs">
                <p:menuitem url="/admin/promotion.jsf" value="Promotions" icon="/resources/images/server.png" /> 
                <p:menuitem url="/admin/student.jsf" value="Etudiants" icon="ui-icon-extlink" />
                <p:menuitem url="/admin/import.jsf" value="Importation" icon="ui-icon-extlink" /> 
            </p:submenu>
            <p:submenu label="Analyse">
                <p:menuitem url="/admin/scan_logs.jsf" value="Scan Logs" icon="ui-icon-extlink" />
                <p:menuitem url="/admin/logs.jsf" value="Voir Logs" icon="ui-icon-extlink" />
            </p:submenu>
        </p:menu>
    </h:form>
</html>
